package com.xuecheng.order.service;

import com.xuecheng.commons.model.dto.MyOrderDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.order.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.FileNotFoundException;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-26
 */
public interface OrdersService extends IService<Orders> {

        ResponseResult<String> createOrder(Long coursePubId);

        ResponseResult queryOrders(String orderNo);

        void getPayment();

        ResponseResult myOrdersList(PageRequest pageRequest, MyOrderDto dto);

        ResponseResult ordersExcel(Long companyId) throws FileNotFoundException;

        ResponseResult countOrders(PageRequest pageRequest, MyOrderDto dto);
}
